﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/ShopCart/ShopCartMaster.Master"
    CodeBehind="ShoppingCartComfirmSuccess_bak.aspx.cs" Inherits="ZLCMS.Web.ShopCart.ShoppingCartComfirmSuccess" %>

<%@ Import Namespace="ZLCMS.Business.Util" %>
<%@ Import Namespace="ZLCMS.Data.Model" %>
<%@ MasterType VirtualPath="~/ShopCart/ShopCartMaster.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="Form1" method="post" runat="server">
    <div class="childnav">
        <div class="title">
            <div class="address">
                <a href="../Default.aspx">亨康</a>|<a href="ShoppingCart.aspx" class="other">购物车</a></div>
        </div>
    </div>
    <div class="clear">
    </div>
    <!--当前位置  end-->
    </div>
    <div class="mall">
        <div style="height: 60px; line-height: 24px;">
            <span style="color: red; font-size: 18px;"><strong>提交成功！</strong></span>订单号：<%= _ordersDB.OrderNo%>，下单时间：<%= _ordersDB.OrderTime%>
            <br>
            <% if (_ordersDB.PayStatus != "1")
               {%>
            <a href="/PayChannal/Jump2PayPage.aspx?o=<%= _ordersDB.OrderNo%>">立即支付</a>
            <%}
               else
               { %>
            <span style="color: red; font-size: 18px;"><strong>订单已经成功支付。</strong></span>
            <%}%>
        </div>
        <div class="clear">
        </div>
        <div class="mrtitle dl_b">
            订单信息：</div>
        <div class="clear">
        </div>
        <div id="centent">
            <!--中间内容 start-->
            <div class="main">
                <!--购物车 start-->
                <div id="cart">
                    <div class="cart_title">
                        <span>【</span>购物车<span>】</span></div>
                    <div class="cart_box">
                        <div class="cart_left">
                            <table width="677" border="0">
                                <tr>
                                    <th colspan="2" scope="col">
                                        产品
                                    </th>
                                    <th scope="col">
                                        &nbsp;
                                    </th>
                                    <th scope="col">
                                        &nbsp;
                                    </th>
                                    <th scope="col">
                                        价格
                                    </th>
                                    <th scope="col">
                                        数量
                                    </th>
                                    <th scope="col">
                                        合计
                                    </th>
                                </tr>
                                <asp:Repeater ID="rp_productlist" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <img src="<%# FileKit.FirstFilePath(NHibernateKit.GetItem<ShopProductInfo>(Container.DataItem, 1).ThumbnailImg) %>"
                                                    style="width: 60px" alt="<%# NHibernateKit.GetItem<ShopProductInfo>(Container.DataItem, 1).ProductName%>" />
                                            </td>
                                            <td style="text-align: left;">
                                                <a href='/ProductView.aspx?uid=<%# NHibernateKit.GetItem<ShopProductInfo>(Container.DataItem, 1).Id %>'
                                                    target="_blank">
                                                    <%# NHibernateKit.GetItem<ShopProductInfo>(Container.DataItem, 1).ProductName%></a></p>
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                ￥<%# float.Parse(NHibernateKit.GetItem<ShopOrderProduct>(Container.DataItem, 0).UnitPrice.ToString()).ToString("0.00")%>
                                            </td>
                                            <td>
                                                <%# NHibernateKit.GetItem<ShopOrderProduct>(Container.DataItem, 0).Quantity%></a>
                                            </td>
                                            <td>
                                                ￥<%# float.Parse(NHibernateKit.GetItem<ShopOrderProduct>(Container.DataItem, 0).TotalPrice.ToString()).ToString("0.00")%>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                                <!-- rp_productlist -->
                            </table>
                        </div>
                        <!--<div class="cart_right">
                            <div class="cart_righttitle">
                                搭配推荐</div>
                            <ul>
                                <asp:Repeater ID="rp_recommend" runat="server">
                                    <ItemTemplate>
                                        <li><a href="#">
                                            <img src="/images/cart_pic.jpg" width="60" height="60" /></a>
                                            <div class="right">
                                                <h3>
                                                    欣安洁肤乳 <span>10ml</span></h3>
                                                <p>
                                                    修复表皮，恢复皮肤屏障功能屏障功能屏障功能屏障功能</p>
                                                <p>
                                                    ￥100</p>
                                            </div>
                                            <div class="clear">
                                            </div>
                                            <p class="go">
                                                <a href="#">[点击订购]</a></p>
                                        </li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </div>-->
                        <div class="clear">
                        </div>
                    </div>
                </div>
                <!--购物车 end-->
            </div>
            <!--中间内容 end-->
        </div>
        <div class="clear">
        </div>
        <div style="float: left; width: 350px;">
            <ul class="mrtext">
                <li class="dl_b"></li>
                <li class="revA" style="padding-top: 5px;">
                    <div class="revALable">
                        订单状态：</div>
                    <div>
                        [<%= ParamKit.GetValue("OrderPayStatus", _ordersDB.PayStatus.ToString(), "&nbsp;")%>]
                        [<%= ParamKit.GetValue("OrderShippingStatus", _ordersDB.ShippingStatus.ToString(), "&nbsp;")%>]
                    </div>
                </li>
                <li class="revA" style="padding-top: 5px;">
                    <div class="revALable">
                        配送方式：</div>
                    <div>
                        <%= _shippingDB == null ? "数据错误!" : _shippingDB.ShippingName%>
                    </div>
                </li>
                <li class="revA" style="padding-top: 5px;">
                    <div class="revALable">
                        支付方式：</div>
                    <div>
                        <%= _paymentDB == null ? "数据错误!" : _paymentDB.PaymentName%>
                    </div>
                </li>
            </ul>
        </div>
        <div style="float: left; width: 400px;">
            <ul class="mrtext">
                <li class="dl_b"></li>
                <li class="revA" style="padding-top: 5px;">
                    <div class="revALable">
                        商品总金额：</div>
                    <div>
                        <%= float.Parse(_ordersDB.TotalPrice.ToString()).ToString("0.00")%>&nbsp;元(<%= _ordersDB.Discount %>%)
                    </div>
                </li>
                <li class="revA" style="padding-top: 5px;">
                    <div class="revALable">
                        商品运费：</div>
                    <div>
                        <%=float.Parse(_ordersDB.ShipPrice.ToString()).ToString("0.00")%>&nbsp;元
                    </div>
                </li>
                <li class="revA" style="padding-top: 5px;">
                    <div class="revALable">
                        订单总金额：</div>
                    <div>
                        <%= float.Parse(_ordersDB.TotalPrice.ToString()).ToString("0.00")%>&nbsp;元
                    </div>
                </li>
            </ul>
        </div>
        <div class="clear">
        </div>
        <div>
            <ul class="mrtext">
                <li class="dl_b"></li>
                <li class="revA" style="padding-top: 5px;">
                    <div class="revALable">
                        购货人姓名：</div>
                    <div>
                        <%= _ordersDB.ReceiverName%>
                    </div>
                </li>
                <li class="revA" style="padding-top: 5px;">
                    <div class="revALable">
                        联系电话：</div>
                    <div>
                        <%= _ordersDB.ReceiverPhone%>
                    </div>
                </li>
                <li class="revA" style="padding-top: 5px;">
                    <div class="revALable">
                        购货人地址：</div>
                    <div>
                        <%= _ordersDB.ReceiverAddress%>
                    </div>
                </li>
            </ul>
        </div>
        <div class="clear">
        </div>
    </div>
    <!-- end mall -->
    </form>
</asp:Content>
